# 对函数的形参进行类型注解
def add(n1: int, n2: int):
    return n1 + n2


result1 = add(1, 2)
result2 = add(3, 3)


# 对函数的返回值进行类型注解
def f(n1: float, n2: int) -> list:
    return [n1, str(n2)]


result3 = f(1.1, 1)

